﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace ASG.CodeGenerator.SQL
{
    public abstract class TableCode<ColumnType, ParameterType> : ASG.CodeGenerator.Core.TypeCode
        where ColumnType : ColumnCode<ParameterType>
        where ParameterType : DbParameter
    {
        public abstract ColumnType this[int index]
        {
            get;
            set;
        }

        public abstract ColumnType this[string name]
        {
            get;
            set;
        }

        public abstract ColumnType PrimaryKeys
        {
            get;
        }

        public abstract void AddColumnInfo(ColumnType columnInfo);

    }
}
